package com.accounting.client.remote;

import com.accounting.client.remote.obj.Cost;
import com.accounting.client.remote.transfer.AddCostRequest;
import com.accounting.client.remote.transfer.UpdateCostRequest;
import com.google.gwt.user.client.rpc.AsyncCallback;

import corelib.client.search.PagingRequest;
import corelib.client.search.PagingResult;

public interface CostServiceAsync {
	
	public void AddCost(String passport, AddCostRequest request, AsyncCallback<Boolean> callback);
	public void UpdateCost(String passport, UpdateCostRequest request, AsyncCallback<Boolean> callback);
	public void RemoveCost(String passport, String costId, AsyncCallback<Boolean> callback);
	public void ListCosts(String passport, PagingRequest request, AsyncCallback<PagingResult<Cost>> callback);
	
}
